package client;

import java.io.*;
import java.net.*;

class Client
{
    protected Socket clientSocket = null;
    protected PrintWriter out = null;
    protected BufferedReader in =null;

    public static void main(String[] args)
    {
        Client client = new Client();
        client.getStart(client);
    }

    public void getStart(Client client)
    {
        try {
            clientSocket = new Socket("localhost", 7777);
            out = new PrintWriter(clientSocket.getOutputStream(), true);
            in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
        } catch (UnknownHostException e) {
            System.err.println("Don't know about host");
            System.exit(1);
        } catch (IOException e) {
            System.err.println("Couldn't get I/O");
            System.exit(1);
        }

        Send send = new Send(client);
        send.start();
        Receive receive = new Receive(client);
        receive.start();
    }

}
